<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>webmysql: org.dbcloud.mongodb.MongoCollection Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="csmake.v2.100.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">webmysql
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">org.dbcloud.mongodb.MongoCollection Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1babfac364fa454408bc0b36116f9604"><td class="memItemLeft" align="right" valign="top"><a id="a1babfac364fa454408bc0b36116f9604"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>csmakeInit</b> (java.util.HashMap&lt; String, String &gt; args)  throws Exception </td></tr>
<tr class="separator:a1babfac364fa454408bc0b36116f9604"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a846851ba6d1d2c39a46be519d722f115"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a846851ba6d1d2c39a46be519d722f115">MongoCollection</a> ()</td></tr>
<tr class="separator:a846851ba6d1d2c39a46be519d722f115"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bfda7c100fe525b33ff984fb33aa7de"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a1bfda7c100fe525b33ff984fb33aa7de">MongoCollection</a> (String db, String collection)</td></tr>
<tr class="separator:a1bfda7c100fe525b33ff984fb33aa7de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab58bc79a81297e114b7910d933851b7f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#ab58bc79a81297e114b7910d933851b7f">MongoCollection</a> (String url, String db, String collection)</td></tr>
<tr class="separator:ab58bc79a81297e114b7910d933851b7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acef4d2303697e996dc38affd79dad473"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#acef4d2303697e996dc38affd79dad473">MongoCollection</a> (String db, String collection, String user, String password)</td></tr>
<tr class="separator:acef4d2303697e996dc38affd79dad473"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a492a0ee36e39ea529c093d35bf7a6434"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a492a0ee36e39ea529c093d35bf7a6434">MongoCollection</a> (String url, String db, String collection, String user, String password)</td></tr>
<tr class="separator:a492a0ee36e39ea529c093d35bf7a6434"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f0e21db5bb3febaa541e133c7ef66e9"><td class="memItemLeft" align="right" valign="top">MongoNamespace&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a2f0e21db5bb3febaa541e133c7ef66e9">getNamespace</a> ()</td></tr>
<tr class="separator:a2f0e21db5bb3febaa541e133c7ef66e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c2af3cf78bc03ccdaac0a951a53e79a"><td class="memItemLeft" align="right" valign="top">Class&lt; Document &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a8c2af3cf78bc03ccdaac0a951a53e79a">getDocumentClass</a> ()</td></tr>
<tr class="separator:a8c2af3cf78bc03ccdaac0a951a53e79a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61344dfb0c2c8024b13958cb58f4b9ea"><td class="memItemLeft" align="right" valign="top">CodecRegistry&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a61344dfb0c2c8024b13958cb58f4b9ea">getCodecRegistry</a> ()</td></tr>
<tr class="separator:a61344dfb0c2c8024b13958cb58f4b9ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dcdfa1f57844a0bdfbab94ce2aff5cf"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a3dcdfa1f57844a0bdfbab94ce2aff5cf">count</a> ()</td></tr>
<tr class="separator:a3dcdfa1f57844a0bdfbab94ce2aff5cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aceb03f6938db18c73f277faa59330c0c"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#aceb03f6938db18c73f277faa59330c0c">count</a> (Document filter)</td></tr>
<tr class="separator:aceb03f6938db18c73f277faa59330c0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a277f5a10bd61376e08c1901694133c18"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a277f5a10bd61376e08c1901694133c18">count</a> (Document filter, Document options)</td></tr>
<tr class="separator:a277f5a10bd61376e08c1901694133c18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7920f36fe6cde9493c3f428f2a91ca90"><td class="memItemLeft" align="right" valign="top">ArrayList&lt; Document &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a7920f36fe6cde9493c3f428f2a91ca90">find</a> ()</td></tr>
<tr class="separator:a7920f36fe6cde9493c3f428f2a91ca90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e19633ee91a386a95c793dd2f107789"><td class="memItemLeft" align="right" valign="top">ArrayList&lt; Document &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a6e19633ee91a386a95c793dd2f107789">find</a> (Document filter)</td></tr>
<tr class="separator:a6e19633ee91a386a95c793dd2f107789"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b29e81c27b01b4489712f87d81ddff9"><td class="memItemLeft" align="right" valign="top">ArrayList&lt; Document &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a6b29e81c27b01b4489712f87d81ddff9">find</a> (Document filter, Document options)</td></tr>
<tr class="separator:a6b29e81c27b01b4489712f87d81ddff9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a582640240d026ad5cac247662f3bec5f"><td class="memItemLeft" align="right" valign="top">ArrayList&lt; Document &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a582640240d026ad5cac247662f3bec5f">find</a> (Document filter, int skip, int limit)</td></tr>
<tr class="separator:a582640240d026ad5cac247662f3bec5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad9e90dcd78041d6690f44da4c90fcea"><td class="memItemLeft" align="right" valign="top">ArrayList&lt; Document &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#aad9e90dcd78041d6690f44da4c90fcea">find</a> (Document filter, Document options, int skip, int limit)</td></tr>
<tr class="separator:aad9e90dcd78041d6690f44da4c90fcea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace6908742cc86253248648e7914e5ba4"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#ace6908742cc86253248648e7914e5ba4">insertOne</a> (Document document)</td></tr>
<tr class="separator:ace6908742cc86253248648e7914e5ba4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6d8b64ac1fe57e05e05dae723a98300"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#ab6d8b64ac1fe57e05e05dae723a98300">insertOne</a> (Document document, Document options)</td></tr>
<tr class="separator:ab6d8b64ac1fe57e05e05dae723a98300"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab65adf01a3bb4cde1fc1a11ed0c1175f"><td class="memItemLeft" align="right" valign="top">List&lt;? extends String &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#ab65adf01a3bb4cde1fc1a11ed0c1175f">insertMany</a> (List&lt;? extends Document &gt; documents)</td></tr>
<tr class="separator:ab65adf01a3bb4cde1fc1a11ed0c1175f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70e847f10d93f3562cb8a393fbcd1356"><td class="memItemLeft" align="right" valign="top">List&lt;? extends String &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a70e847f10d93f3562cb8a393fbcd1356">insertMany</a> (List&lt;? extends Document &gt; documents, Document options)</td></tr>
<tr class="separator:a70e847f10d93f3562cb8a393fbcd1356"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77c09e10634134072f088158e3df7b7c"><td class="memItemLeft" align="right" valign="top">DeleteResult&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a77c09e10634134072f088158e3df7b7c">deleteOne</a> (Document filter)</td></tr>
<tr class="separator:a77c09e10634134072f088158e3df7b7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f4401a7fe9c3c6a4e40bf42aa33aacf"><td class="memItemLeft" align="right" valign="top">DeleteResult&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a9f4401a7fe9c3c6a4e40bf42aa33aacf">deleteMany</a> (Document filter)</td></tr>
<tr class="separator:a9f4401a7fe9c3c6a4e40bf42aa33aacf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae963c0f947163662e7e423f2bf0beb55"><td class="memItemLeft" align="right" valign="top">UpdateResult&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#ae963c0f947163662e7e423f2bf0beb55">replaceOne</a> (Document filter, Document replacement)</td></tr>
<tr class="separator:ae963c0f947163662e7e423f2bf0beb55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7a01525a63a7a36a15f223b626b4ee2"><td class="memItemLeft" align="right" valign="top">UpdateResult&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#ae7a01525a63a7a36a15f223b626b4ee2">replaceOne</a> (Document filter, Document replacement, Document options)</td></tr>
<tr class="separator:ae7a01525a63a7a36a15f223b626b4ee2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7c23f71ad6a890481137116c064643d"><td class="memItemLeft" align="right" valign="top">UpdateResult&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#ab7c23f71ad6a890481137116c064643d">updateOne</a> (Document filter, Document update)</td></tr>
<tr class="separator:ab7c23f71ad6a890481137116c064643d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab97cedc795005ea33bdfdb70ab72e46c"><td class="memItemLeft" align="right" valign="top">UpdateResult&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#ab97cedc795005ea33bdfdb70ab72e46c">updateOne</a> (Document filter, Document update, Document options)</td></tr>
<tr class="separator:ab97cedc795005ea33bdfdb70ab72e46c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af70d333cb96d2e392bf3e7a40f877905"><td class="memItemLeft" align="right" valign="top">UpdateResult&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#af70d333cb96d2e392bf3e7a40f877905">updateMany</a> (Document filter, Document update)</td></tr>
<tr class="separator:af70d333cb96d2e392bf3e7a40f877905"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72bd2e171d6a8e138ecab881f479ee39"><td class="memItemLeft" align="right" valign="top">UpdateResult&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a72bd2e171d6a8e138ecab881f479ee39">updateMany</a> (Document filter, Document update, Document options)</td></tr>
<tr class="separator:a72bd2e171d6a8e138ecab881f479ee39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a579e7b8ff5606d79a424fb9f8c782eed"><td class="memItemLeft" align="right" valign="top">Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a579e7b8ff5606d79a424fb9f8c782eed">findOneAndDelete</a> (Document filter)</td></tr>
<tr class="separator:a579e7b8ff5606d79a424fb9f8c782eed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e227614c1369e7a1b33d0a241467a4d"><td class="memItemLeft" align="right" valign="top">Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a5e227614c1369e7a1b33d0a241467a4d">findOneAndDelete</a> (Document filter, Document options)</td></tr>
<tr class="separator:a5e227614c1369e7a1b33d0a241467a4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a416e561769737fda3367ac25040dd612"><td class="memItemLeft" align="right" valign="top">Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a416e561769737fda3367ac25040dd612">findOneAndReplace</a> (Document filter, Document replacement)</td></tr>
<tr class="separator:a416e561769737fda3367ac25040dd612"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11fbbe695ab03ffa33bf49fd96082945"><td class="memItemLeft" align="right" valign="top">Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a11fbbe695ab03ffa33bf49fd96082945">findOneAndReplace</a> (Document filter, Document replacement, Document options)</td></tr>
<tr class="separator:a11fbbe695ab03ffa33bf49fd96082945"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a930e0886d2a077f9bf50de4393dda474"><td class="memItemLeft" align="right" valign="top">Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a930e0886d2a077f9bf50de4393dda474">findOneAndUpdate</a> (Document filter, Document update)</td></tr>
<tr class="separator:a930e0886d2a077f9bf50de4393dda474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae248d63161583e67f6146d837b44375e"><td class="memItemLeft" align="right" valign="top">Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#ae248d63161583e67f6146d837b44375e">findOneAndUpdate</a> (Document filter, Document update, Document options)</td></tr>
<tr class="separator:ae248d63161583e67f6146d837b44375e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a695d56304266d8d5cca11389128ea670"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a695d56304266d8d5cca11389128ea670">drop</a> ()</td></tr>
<tr class="separator:a695d56304266d8d5cca11389128ea670"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ddc3799b301f1028d056631b922ed86"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a4ddc3799b301f1028d056631b922ed86">close</a> ()</td></tr>
<tr class="separator:a4ddc3799b301f1028d056631b922ed86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83c92798071552e8c968b8c3e579748d"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a83c92798071552e8c968b8c3e579748d">createIndex</a> (Document keys)</td></tr>
<tr class="separator:a83c92798071552e8c968b8c3e579748d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8760e7a2803c020ec032152ed90e1444"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a8760e7a2803c020ec032152ed90e1444">createIndex</a> (Document keys, Document options)</td></tr>
<tr class="separator:a8760e7a2803c020ec032152ed90e1444"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a482791d8b4b70357f1be77e4eb497b8b"><td class="memItemLeft" align="right" valign="top">List&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a482791d8b4b70357f1be77e4eb497b8b">createIndexes</a> (List&lt; Document &gt; indexes)</td></tr>
<tr class="separator:a482791d8b4b70357f1be77e4eb497b8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a103bda32a8e24b95294da0641e81417f"><td class="memItemLeft" align="right" valign="top">ListIndexesIterable&lt; Document &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a103bda32a8e24b95294da0641e81417f">listIndexes</a> ()</td></tr>
<tr class="separator:a103bda32a8e24b95294da0641e81417f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a241216a60637b42131e76277c478c293"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a241216a60637b42131e76277c478c293">dropIndex</a> (String keys)</td></tr>
<tr class="separator:a241216a60637b42131e76277c478c293"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb8606934c2234be092ff9d14cff8492"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#afb8606934c2234be092ff9d14cff8492">dropIndex</a> (Document keys)</td></tr>
<tr class="separator:afb8606934c2234be092ff9d14cff8492"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2edf2713f3c672345cd270a57eb51240"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a2edf2713f3c672345cd270a57eb51240">dropIndexes</a> ()</td></tr>
<tr class="separator:a2edf2713f3c672345cd270a57eb51240"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dbfb3d6fa8b5a5cb2eb499c500c99ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a5dbfb3d6fa8b5a5cb2eb499c500c99ec">renameCollection</a> (Document newCollectionNamespace)</td></tr>
<tr class="separator:a5dbfb3d6fa8b5a5cb2eb499c500c99ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7191c56a99d940e0820b62dd5f27948a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html#a7191c56a99d940e0820b62dd5f27948a">renameCollection</a> (Document newCollectionNamespace, Document options)</td></tr>
<tr class="separator:a7191c56a99d940e0820b62dd5f27948a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html">MongoCollection</a> interface.</p>
<p>Note: Additions to this interface will not be considered to break binary compatibility.</p>
<p><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html">MongoCollection</a> is generic allowing for different types to represent documents. includes built-in support for: <a class="el" href="">org.bson.BsonDocument</a>, <a class="el" href="">Document</a> . </p>
<dl class="section author"><dt>Author</dt><dd>www.csmake.com kylin </dd></dl>
<dl class="section since"><dt>Since</dt><dd>dbcloud 1.0 mongo.java.driver 3.2.2 </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00168">168</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a846851ba6d1d2c39a46be519d722f115"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a846851ba6d1d2c39a46be519d722f115">&#9670;&nbsp;</a></span>MongoCollection() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">org.dbcloud.mongodb.MongoCollection.MongoCollection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>connect to server collection by the default settings in web.xml which used in csmakeInit </p>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00201">201</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a1bfda7c100fe525b33ff984fb33aa7de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1bfda7c100fe525b33ff984fb33aa7de">&#9670;&nbsp;</a></span>MongoCollection() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">org.dbcloud.mongodb.MongoCollection.MongoCollection </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>db</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>collection</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>connect to server collection.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">db</td><td>the database name </td></tr>
    <tr><td class="paramname">collection</td><td>the name of collection </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00210">210</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="ab58bc79a81297e114b7910d933851b7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab58bc79a81297e114b7910d933851b7f">&#9670;&nbsp;</a></span>MongoCollection() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">org.dbcloud.mongodb.MongoCollection.MongoCollection </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>db</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>collection</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>connect to server collection.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>connetion eg. 127.0.0.1:27017 </td></tr>
    <tr><td class="paramname">db</td><td>the database name </td></tr>
    <tr><td class="paramname">collection</td><td>the name of collection </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00222">222</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="acef4d2303697e996dc38affd79dad473"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acef4d2303697e996dc38affd79dad473">&#9670;&nbsp;</a></span>MongoCollection() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">org.dbcloud.mongodb.MongoCollection.MongoCollection </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>db</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>collection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>user</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>password</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>connect to server collection. about auth: <a href="https://docs.mongodb.com/manual/reference/built-in-roles/">https://docs.mongodb.com/manual/reference/built-in-roles/</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">db</td><td>the database name </td></tr>
    <tr><td class="paramname">collection</td><td>the name of collection </td></tr>
    <tr><td class="paramname">user</td><td>the database user name </td></tr>
    <tr><td class="paramname">password</td><td>the database password </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00242">242</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a492a0ee36e39ea529c093d35bf7a6434"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a492a0ee36e39ea529c093d35bf7a6434">&#9670;&nbsp;</a></span>MongoCollection() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">org.dbcloud.mongodb.MongoCollection.MongoCollection </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>db</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>collection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>user</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>password</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>connect to server collection. about auth: <a href="https://docs.mongodb.com/manual/reference/built-in-roles/">https://docs.mongodb.com/manual/reference/built-in-roles/</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>connetion eg. 127.0.0.1:27017 </td></tr>
    <tr><td class="paramname">db</td><td>the database name </td></tr>
    <tr><td class="paramname">collection</td><td>the name of collection </td></tr>
    <tr><td class="paramname">user</td><td>the database user name </td></tr>
    <tr><td class="paramname">password</td><td>the database password </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00261">261</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4ddc3799b301f1028d056631b922ed86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ddc3799b301f1028d056631b922ed86">&#9670;&nbsp;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void org.dbcloud.mongodb.MongoCollection.close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>close collection from the Database. </p>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00823">823</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a3dcdfa1f57844a0bdfbab94ce2aff5cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3dcdfa1f57844a0bdfbab94ce2aff5cf">&#9670;&nbsp;</a></span>count() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long org.dbcloud.mongodb.MongoCollection.count </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Counts the number of documents in the collection.</p>
<dl class="section return"><dt>Returns</dt><dd>the number of documents in the collection </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00308">308</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="aceb03f6938db18c73f277faa59330c0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aceb03f6938db18c73f277faa59330c0c">&#9670;&nbsp;</a></span>count() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long org.dbcloud.mongodb.MongoCollection.count </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Counts the number of documents in the collection according to the given options.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of documents in the collection </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00319">319</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a277f5a10bd61376e08c1901694133c18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a277f5a10bd61376e08c1901694133c18">&#9670;&nbsp;</a></span>count() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long org.dbcloud.mongodb.MongoCollection.count </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Counts the number of documents in the collection according to the given options.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter </td></tr>
    <tr><td class="paramname">options</td><td>the options describing the count </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of documents in the collection </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00331">331</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a83c92798071552e8c968b8c3e579748d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83c92798071552e8c968b8c3e579748d">&#9670;&nbsp;</a></span>createIndex() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String org.dbcloud.mongodb.MongoCollection.createIndex </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>keys</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create an index with the given keys.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">keys</td><td>an object describing the index key(s), which may not be null. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the index name mongodb.driver.manual reference/command/createIndexes Create indexes </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00834">834</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a8760e7a2803c020ec032152ed90e1444"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8760e7a2803c020ec032152ed90e1444">&#9670;&nbsp;</a></span>createIndex() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String org.dbcloud.mongodb.MongoCollection.createIndex </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>keys</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create an index with the given keys and options.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">keys</td><td>an object describing the index key(s), which may not be null. </td></tr>
    <tr><td class="paramname">options</td><td>the options for the index </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the index name mongodb.driver.manual reference/command/createIndexes Create indexes </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00846">846</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a482791d8b4b70357f1be77e4eb497b8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a482791d8b4b70357f1be77e4eb497b8b">&#9670;&nbsp;</a></span>createIndexes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;String&gt; org.dbcloud.mongodb.MongoCollection.createIndexes </td>
          <td>(</td>
          <td class="paramtype">List&lt; Document &gt;&#160;</td>
          <td class="paramname"><em>indexes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create multiple indexes.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">indexes</td><td>the list of indexes </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the list of index names mongodb.driver.manual reference/command/createIndexes Create indexes mongodb.server.release 2.6 </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00912">912</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a9f4401a7fe9c3c6a4e40bf42aa33aacf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f4401a7fe9c3c6a4e40bf42aa33aacf">&#9670;&nbsp;</a></span>deleteMany()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DeleteResult org.dbcloud.mongodb.MongoCollection.deleteMany </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter to apply the the delete operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result of the remove many operation </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the delete command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00552">552</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a77c09e10634134072f088158e3df7b7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77c09e10634134072f088158e3df7b7c">&#9670;&nbsp;</a></span>deleteOne()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DeleteResult org.dbcloud.mongodb.MongoCollection.deleteOne </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter to apply the the delete operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result of the remove one operation </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the delete command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00535">535</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a695d56304266d8d5cca11389128ea670"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a695d56304266d8d5cca11389128ea670">&#9670;&nbsp;</a></span>drop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void org.dbcloud.mongodb.MongoCollection.drop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Drops this collection from the Database.</p>
<p>mongodb.driver.manual reference/command/drop/ Drop Collection </p>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00815">815</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a241216a60637b42131e76277c478c293"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a241216a60637b42131e76277c478c293">&#9670;&nbsp;</a></span>dropIndex() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void org.dbcloud.mongodb.MongoCollection.dropIndex </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>keys</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Drops the index given its name.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">keys</td><td>the name of the index to remove mongodb.driver.manual reference/command/dropIndexes/ Drop indexes </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00936">936</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="afb8606934c2234be092ff9d14cff8492"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb8606934c2234be092ff9d14cff8492">&#9670;&nbsp;</a></span>dropIndex() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void org.dbcloud.mongodb.MongoCollection.dropIndex </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>keys</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Drops the index given the keys used to create it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">keys</td><td>the keys of the index to remove mongodb.driver.manual reference/command/dropIndexes/ Drop indexes </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00946">946</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a2edf2713f3c672345cd270a57eb51240"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2edf2713f3c672345cd270a57eb51240">&#9670;&nbsp;</a></span>dropIndexes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void org.dbcloud.mongodb.MongoCollection.dropIndexes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Drop all the indexes on this collection, except for the default on _id.</p>
<p>mongodb.driver.manual reference/command/dropIndexes/ Drop indexes </p>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00955">955</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a7920f36fe6cde9493c3f428f2a91ca90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7920f36fe6cde9493c3f428f2a91ca90">&#9670;&nbsp;</a></span>find() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ArrayList&lt;Document&gt; org.dbcloud.mongodb.MongoCollection.find </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Finds all documents in the collection.</p>
<dl class="section return"><dt>Returns</dt><dd>the find iterable interface mongodb.driver.manual tutorial/query-documents/ Find </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00359">359</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a6e19633ee91a386a95c793dd2f107789"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e19633ee91a386a95c793dd2f107789">&#9670;&nbsp;</a></span>find() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ArrayList&lt;Document&gt; org.dbcloud.mongodb.MongoCollection.find </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Finds all documents in the collection.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the find iterable interface mongodb.driver.manual tutorial/query-documents/ Find </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00370">370</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a6b29e81c27b01b4489712f87d81ddff9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b29e81c27b01b4489712f87d81ddff9">&#9670;&nbsp;</a></span>find() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ArrayList&lt;Document&gt; org.dbcloud.mongodb.MongoCollection.find </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Finds all documents in the collection.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter </td></tr>
    <tr><td class="paramname">options,include</td><td>projection the projection filter,sort the sort,skip, limit filter </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the find iterable interface mongodb.driver.manual tutorial/query-documents/ Find </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00382">382</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a582640240d026ad5cac247662f3bec5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a582640240d026ad5cac247662f3bec5f">&#9670;&nbsp;</a></span>find() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ArrayList&lt;Document&gt; org.dbcloud.mongodb.MongoCollection.find </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>skip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>limit</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Finds all documents in the collection.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter </td></tr>
    <tr><td class="paramname">skip</td><td>the skip, the start records </td></tr>
    <tr><td class="paramname">limit</td><td>the limit count </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the find iterable interface mongodb.driver.manual tutorial/query-documents/ Find </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00410">410</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="aad9e90dcd78041d6690f44da4c90fcea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad9e90dcd78041d6690f44da4c90fcea">&#9670;&nbsp;</a></span>find() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ArrayList&lt;Document&gt; org.dbcloud.mongodb.MongoCollection.find </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>skip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>limit</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Finds all documents in the collection.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter </td></tr>
    <tr><td class="paramname">options,include</td><td>projection the projection filter,sort the sort,skip, limit </td></tr>
    <tr><td class="paramname">skip</td><td>the skip, the start records </td></tr>
    <tr><td class="paramname">limit</td><td>the limit count </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the find iterable interface mongodb.driver.manual tutorial/query-documents/ Find </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00424">424</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a579e7b8ff5606d79a424fb9f8c782eed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a579e7b8ff5606d79a424fb9f8c782eed">&#9670;&nbsp;</a></span>findOneAndDelete() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Document org.dbcloud.mongodb.MongoCollection.findOneAndDelete </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Atomically find a document and remove it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter to find the document with </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the document that was removed. If no documents matched the query filter, then null will be returned </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00688">688</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a5e227614c1369e7a1b33d0a241467a4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e227614c1369e7a1b33d0a241467a4d">&#9670;&nbsp;</a></span>findOneAndDelete() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Document org.dbcloud.mongodb.MongoCollection.findOneAndDelete </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Atomically find a document and remove it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter to find the document with </td></tr>
    <tr><td class="paramname">options</td><td>the options to apply to the operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the document that was removed. If no documents matched the query filter, then null will be returned </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00700">700</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a416e561769737fda3367ac25040dd612"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a416e561769737fda3367ac25040dd612">&#9670;&nbsp;</a></span>findOneAndReplace() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Document org.dbcloud.mongodb.MongoCollection.findOneAndReplace </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>replacement</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Atomically find a document and replace it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter to apply the the replace operation </td></tr>
    <tr><td class="paramname">replacement</td><td>the replacement document </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the document that was replaced. Depending on the value of the <div class="fragment"><div class="line">returnOriginal </div></div><!-- fragment --> property, this will either be the document as it was before the update or as it is after the update. If no documents matched the query filter, then null will be returned </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00726">726</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a11fbbe695ab03ffa33bf49fd96082945"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11fbbe695ab03ffa33bf49fd96082945">&#9670;&nbsp;</a></span>findOneAndReplace() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Document org.dbcloud.mongodb.MongoCollection.findOneAndReplace </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>replacement</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Atomically find a document and replace it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter to apply the the replace operation </td></tr>
    <tr><td class="paramname">replacement</td><td>the replacement document </td></tr>
    <tr><td class="paramname">options</td><td>the options to apply to the operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the document that was replaced. Depending on the value of the <div class="fragment"><div class="line">returnOriginal </div></div><!-- fragment --> property, this will either be the document as it was before the update or as it is after the update. If no documents matched the query filter, then null will be returned </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00741">741</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a930e0886d2a077f9bf50de4393dda474"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a930e0886d2a077f9bf50de4393dda474">&#9670;&nbsp;</a></span>findOneAndUpdate() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Document org.dbcloud.mongodb.MongoCollection.findOneAndUpdate </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>update</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Atomically find a document and update it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>a document describing the query filter, which may not be null. </td></tr>
    <tr><td class="paramname">update</td><td>a document describing the update, which may not be null. The update to apply must include only update operators. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the document that was updated before the update was applied. If no documents matched the query filter, then null will be returned </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00773">773</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="ae248d63161583e67f6146d837b44375e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae248d63161583e67f6146d837b44375e">&#9670;&nbsp;</a></span>findOneAndUpdate() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Document org.dbcloud.mongodb.MongoCollection.findOneAndUpdate </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>update</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Atomically find a document and update it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>a document describing the query filter, which may not be null. </td></tr>
    <tr><td class="paramname">update</td><td>a document describing the update, which may not be null. The update to apply must include only update operators. </td></tr>
    <tr><td class="paramname">options</td><td>the options to apply to the operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the document that was updated. Depending on the value of the <div class="fragment"><div class="line">returnOriginal </div></div><!-- fragment --> property, this will either be the document as it was before the update or as it is after the update. If no documents matched the query filter, then null will be returned </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00790">790</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a61344dfb0c2c8024b13958cb58f4b9ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61344dfb0c2c8024b13958cb58f4b9ea">&#9670;&nbsp;</a></span>getCodecRegistry()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CodecRegistry org.dbcloud.mongodb.MongoCollection.getCodecRegistry </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the codec registry for the <a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html">MongoCollection</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="">org.bson.codecs.configuration.CodecRegistry</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00299">299</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a8c2af3cf78bc03ccdaac0a951a53e79a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c2af3cf78bc03ccdaac0a951a53e79a">&#9670;&nbsp;</a></span>getDocumentClass()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Class&lt;Document&gt; org.dbcloud.mongodb.MongoCollection.getDocumentClass </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the class of documents stored in this collection.</p>
<dl class="section return"><dt>Returns</dt><dd>the class </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00290">290</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a2f0e21db5bb3febaa541e133c7ef66e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f0e21db5bb3febaa541e133c7ef66e9">&#9670;&nbsp;</a></span>getNamespace()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MongoNamespace org.dbcloud.mongodb.MongoCollection.getNamespace </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gets the newCollectionNamespace of this collection.</p>
<dl class="section return"><dt>Returns</dt><dd>the newCollectionNamespace </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00281">281</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="ab65adf01a3bb4cde1fc1a11ed0c1175f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab65adf01a3bb4cde1fc1a11ed0c1175f">&#9670;&nbsp;</a></span>insertMany() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;? extends String&gt; org.dbcloud.mongodb.MongoCollection.insertMany </td>
          <td>(</td>
          <td class="paramtype">List&lt;? extends Document &gt;&#160;</td>
          <td class="paramname"><em>documents</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Inserts one or more documents. A call to this method is equivalent to a call to the</p><div class="fragment"><div class="line">bulkWrite </div></div><!-- fragment --><p> method</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">documents</td><td>the documents to insert </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>_id list </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoBulkWriteException</td><td>if there's an exception in the bulk write operation </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>com.mongodb.client.MongoCollection::bulkWrite </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00484">484</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a70e847f10d93f3562cb8a393fbcd1356"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70e847f10d93f3562cb8a393fbcd1356">&#9670;&nbsp;</a></span>insertMany() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;? extends String&gt; org.dbcloud.mongodb.MongoCollection.insertMany </td>
          <td>(</td>
          <td class="paramtype">List&lt;? extends Document &gt;&#160;</td>
          <td class="paramname"><em>documents</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Inserts one or more documents. A call to this method is equivalent to a call to the</p><div class="fragment"><div class="line">bulkWrite </div></div><!-- fragment --><p> method</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">documents</td><td>the documents to insert </td></tr>
    <tr><td class="paramname">options</td><td>the options to apply to the operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>_id list </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoBulkWriteException</td><td>if there's an exception in the bulk write operation </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>com.mongodb.client.MongoCollection::bulkWrite </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00507">507</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="ace6908742cc86253248648e7914e5ba4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace6908742cc86253248648e7914e5ba4">&#9670;&nbsp;</a></span>insertOne() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String org.dbcloud.mongodb.MongoCollection.insertOne </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>document</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Inserts the provided document. If the document is missing an identifier, the driver should generate one.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">document</td><td>the document to insert </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>_id </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the insert command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00443">443</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="ab6d8b64ac1fe57e05e05dae723a98300"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6d8b64ac1fe57e05e05dae723a98300">&#9670;&nbsp;</a></span>insertOne() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String org.dbcloud.mongodb.MongoCollection.insertOne </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>document</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Inserts the provided document. If the document is missing an identifier, the driver should generate one.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">document</td><td>the document to insert </td></tr>
    <tr><td class="paramname">options</td><td>the options to apply to the operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>_id </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the insert command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoCommandException</td><td>if the write failed due to document validation reasons </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>mongo.java.driver 3.2 </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00465">465</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a103bda32a8e24b95294da0641e81417f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a103bda32a8e24b95294da0641e81417f">&#9670;&nbsp;</a></span>listIndexes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ListIndexesIterable&lt;Document&gt; org.dbcloud.mongodb.MongoCollection.listIndexes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get all the indexes in this collection.</p>
<dl class="section return"><dt>Returns</dt><dd>the list indexes iterable interface mongodb.driver.manual reference/command/listIndexes/ List indexes </dd></dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00926">926</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a5dbfb3d6fa8b5a5cb2eb499c500c99ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5dbfb3d6fa8b5a5cb2eb499c500c99ec">&#9670;&nbsp;</a></span>renameCollection() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void org.dbcloud.mongodb.MongoCollection.renameCollection </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>newCollectionNamespace</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Rename the collection with oldCollectionName to the newCollectionName.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">newCollectionNamespace</td><td>the newCollectionNamespace the collection will be renamed to </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoServerException</td><td>if you provide a newCollectionName that is the name of an existing collection, or if the oldCollectionName is the name of a collection that doesn't exist mongodb.driver.manual reference/commands/renameCollection Rename collection </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00970">970</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a7191c56a99d940e0820b62dd5f27948a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7191c56a99d940e0820b62dd5f27948a">&#9670;&nbsp;</a></span>renameCollection() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void org.dbcloud.mongodb.MongoCollection.renameCollection </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>newCollectionNamespace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Rename the collection with oldCollectionName to the newCollectionName.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">newCollectionNamespace</td><td>the name the collection will be renamed to </td></tr>
    <tr><td class="paramname">options</td><td>the options for renaming a collection </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoServerException</td><td>if you provide a newCollectionName that is the name of an existing collection and dropTarget is false, or if the oldCollectionName is the name of a collection that doesn't exist mongodb.driver.manual reference/commands/renameCollection Rename collection </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00985">985</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="ae963c0f947163662e7e423f2bf0beb55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae963c0f947163662e7e423f2bf0beb55">&#9670;&nbsp;</a></span>replaceOne() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UpdateResult org.dbcloud.mongodb.MongoCollection.replaceOne </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>replacement</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Replace a document in the collection according to the specified arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter to apply the the replace operation </td></tr>
    <tr><td class="paramname">replacement</td><td>the replacement document </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result of the replace one operation </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the replace command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure mongodb.driver.manual tutorial/modify-documents/#replace-the-document Replace </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00571">571</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="ae7a01525a63a7a36a15f223b626b4ee2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7a01525a63a7a36a15f223b626b4ee2">&#9670;&nbsp;</a></span>replaceOne() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UpdateResult org.dbcloud.mongodb.MongoCollection.replaceOne </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>replacement</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Replace a document in the collection according to the specified arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>the query filter to apply the the replace operation </td></tr>
    <tr><td class="paramname">replacement</td><td>the replacement document </td></tr>
    <tr><td class="paramname">options</td><td>the options to apply to the replace operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result of the replace one operation </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the replace command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure mongodb.driver.manual tutorial/modify-documents/#replace-the-document Replace </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00591">591</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="af70d333cb96d2e392bf3e7a40f877905"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af70d333cb96d2e392bf3e7a40f877905">&#9670;&nbsp;</a></span>updateMany() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UpdateResult org.dbcloud.mongodb.MongoCollection.updateMany </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>update</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Update all documents in the collection according to the specified arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>a document describing the query filter, which may not be null. </td></tr>
    <tr><td class="paramname">update</td><td>a document describing the update, which may not be null. The update to apply must include only update operators. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result of the update one operation </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the update command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure mongodb.driver.manual tutorial/modify-documents/ Updates mongodb.driver.manual reference/operator/update/ Update Operators </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00655">655</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="a72bd2e171d6a8e138ecab881f479ee39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72bd2e171d6a8e138ecab881f479ee39">&#9670;&nbsp;</a></span>updateMany() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UpdateResult org.dbcloud.mongodb.MongoCollection.updateMany </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>update</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Update all documents in the collection according to the specified arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>a document describing the query filter, which may not be null. </td></tr>
    <tr><td class="paramname">update</td><td>a document describing the update, which may not be null. The update to apply must include only update operators. </td></tr>
    <tr><td class="paramname">options</td><td>the options to apply to the update operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result of the update one operation </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the update command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure mongodb.driver.manual tutorial/modify-documents/ Updates mongodb.driver.manual reference/operator/update/ Update Operators </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00677">677</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="ab7c23f71ad6a890481137116c064643d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7c23f71ad6a890481137116c064643d">&#9670;&nbsp;</a></span>updateOne() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UpdateResult org.dbcloud.mongodb.MongoCollection.updateOne </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>update</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Update a single document in the collection according to the specified arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>a document describing the query filter, which may not be null. </td></tr>
    <tr><td class="paramname">update</td><td>a document describing the update, which may not be null. The update to apply must include only update operators. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result of the update one operation </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the update command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure mongodb.driver.manual tutorial/modify-documents/ Updates mongodb.driver.manual reference/operator/update/ Update Operators </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00612">612</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<a id="ab97cedc795005ea33bdfdb70ab72e46c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab97cedc795005ea33bdfdb70ab72e46c">&#9670;&nbsp;</a></span>updateOne() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UpdateResult org.dbcloud.mongodb.MongoCollection.updateOne </td>
          <td>(</td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>update</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Document&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Update a single document in the collection according to the specified arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filter</td><td>a document describing the query filter, which may not be null. </td></tr>
    <tr><td class="paramname">update</td><td>a document describing the update, which may not be null. The update to apply must include only update operators. </td></tr>
    <tr><td class="paramname">options</td><td>the options to apply to the update operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result of the update one operation </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">com.mongodb.MongoWriteException</td><td>if the write failed due some other failure specific to the update command </td></tr>
    <tr><td class="paramname">com.mongodb.MongoWriteConcernException</td><td>if the write failed due being unable to fulfil the write concern </td></tr>
    <tr><td class="paramname">com.mongodb.MongoException</td><td>if the write failed due some other failure mongodb.driver.manual tutorial/modify-documents/ Updates mongodb.driver.manual reference/operator/update/ Update Operators </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mongo_collection_8java_source.html#l00634">634</a> of file <a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>H:/GitHub/dbcloud/src/java/org/dbcloud/mongodb/<a class="el" href="_mongo_collection_8java_source.html">MongoCollection.java</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>org</b></li><li class="navelem"><b>dbcloud</b></li><li class="navelem"><a class="el" href="namespaceorg_1_1dbcloud_1_1mongodb.html">mongodb</a></li><li class="navelem"><a class="el" href="classorg_1_1dbcloud_1_1mongodb_1_1_mongo_collection.html">MongoCollection</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
